import styled from "styled-components";
import up from "../../assets/img/up.png";
export const CinemaDetail = styled.div`
  background: #fff;
  .cinema-header {
    padding-left: 0.15rem;
    height: 0.44rem;
    line-height: 0.44rem;
  }
  .cinema-title {
    position: relative;
    text-align: center;
    font-size: 0.16rem;
    width: 100%;
    height: 0.44rem;
    line-height: 0.44rem;
  }
  .cinema-info {
    .tags {
      display: flex;
      justify-content: center;
      font-size: 0.1rem;
      padding: 0.05rem 0 0.15rem;
      position: relative;
      &::after {
        content: "";
        width: 100%;
        height: 1px;
        position: absolute;
        bottom: 0;
        background: #eee8;
      }
      .tag {
        color: #ffb232;
        position: relative;
        padding: 0.04rem;
        margin: 0 0.03rem;
        &::after {
          content: " ";
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          right: 0;
          border: 1px solid #ffb23250;
        }
      }
    }
    .address {
      height: 0.5rem;
      padding-left: 0.17rem;
      display: flex;
      align-items: center;
      .address-dec {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 0.12rem;
        flex: 1;
      }
      .phone {
        padding: 0 0.25rem;
      }
    }
    .icon {
      position: relative;
      width: 0.12rem;
      &::after {
        content: " ";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0.18rem;
        height: 0.12rem;
        background: url(${up}) no-repeat 0.18rem 0.12rem;
        background-position: 0 0;
        transform: rotate(90deg) translateX(-35%) scale(0.5);
      }
    }
  }
  .schedule-warp {
    position: relative;
    height: 1.6rem;
    .film-bg {
      position: absolute;
      top: 0;
      width: 100%;
      height: 1.3rem;
      padding: 0.15rem 0;
      overflow: hidden;
      .img {
        width: 100%;
        height: 100%;
        filter: blur(0.3rem);
      }
    }
    .film-list {
      position: absolute;
      height: 1.3rem;
      padding: 0.15rem 0;
      top: 0;
      z-index: 999;
      width: 100%;
      .swiper-wrapper {
        height: 100%;
        .swiper-slide-active {
          min-width: 0.9rem !important;
        }
        .swiper-slide {
          height: 100%;
          text-align: center;
        }
      }
      .film-item {
        height: 1.3rem !important;
        display: flex;
        justify-content: center;
        transition: all 0.5s;
        box-sizing: border-box;
        .img-warp {
          position: relative;
          width: 0.9rem;
          height: 100%;
          display: flex;
          justify-content: center;
          img {
            max-width: 0.9rem;
            height: 100%;
            position: absolute;
            bottom: 0;
          }
        }
      }
      .jianjian {
        display: flex;
        width: 100%;
        height: 0.1rem;
        position: absolute;
        bottom: 0;
        justify-content: center;
      }
    }
  }
  .film-info {
    position: relative;
    padding: 0.15rem 0;
    text-align: center;
    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background: #ccc;
      transform: scaleY(0.5);
    }
    .film-head {
      margin-bottom: 0.1rem;
      .film-name {
        letter-spacing: 0.02rem;
      }
      .film-grade {
        margin-left: 0.1rem;
        font-size: 0.16rem;
        font-style: italic;
        color: #ffb232;
      }
      .film-grade-title {
        font-size: 0.12rem;
        color: #ffb232;
      }
    }
    .film-desc {
      font-size: 0.13rem;
      padding: 0 12%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: #797d82;
    }
  }
  .datelist {
    width: 100%;
    position: relative;
    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background: #ccc;
      transform: scaleY(0.5);
    }
    .date-warp {
      display: flex;
      height: 0.49rem;
      overflow-x: auto;
      overflow-y: hidden;
      align-items: center;
      &::-webkit-scrollbar {
        display: none;
      }
    .date-item {
      box-sizing:border-box;
      min-width: 1.1rem;
      height: 0.49rem;
      line-height:0.49rem;
      padding: 0 0.15rem;
      flex: 1;
    }
  }
`;
